<template>
	<view class="flex pos-rel justify-around align-center mar-t-10">
		<navigator
			url="/pages/search/index"
			hover-class="none"
			class="top-search flex-1  text-center flex align-center justify-center"
		>
			<icon :type="'search'" size="14" />
			<view class=" search-holder mar-l-10 font-size-13">搜索活动主题/咨询问题/咨询师</view>
		</navigator>
		<!-- <text class="iconfont icon-scan mar-l-20 font-size-22 font-color-999" @click="saoma"></text> -->
		<!-- <mk-icon @click="saoma" :height='40' :width='40' class="mar-l-10"></mk-icon> -->
	</view>

</template>

<script>
import {actJoinConfirm} from '@/utils/http'
export default {
	methods: {
		saoma(){
			let _that = this
			ZWJSBridge.scan({
				type: "qrCode"
			}).then((data) => {
				console.log(data);
				actJoinConfirm({order_no:data.text}).then(res=>{
					if(res){
						_that.successToShow('核验通过');
					}
				})
				// data =>{"text" : "扫描到的内容"}
			}).catch((error) => {
				console.log(error);
			});

		}
	},
}
</script>

<style scoped>
.top-search {
	background-color: #f2f2f2;
	border-radius: 30rpx;
	height: 40px;
	line-height: 40px;
	align-items: center;

}
.search-icon {
	/* margin-top: -2px; */
	/* left: 40px;
	box-sizing: border-box; */
	/* height: 13px;
	width: 13px; */
	/* background-color: aqua; */
}
.top-search .search-holder {
	color: #999999;
}
</style>